Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: prevents goroutine leak at websocket transport #2167 #2168

Merged
merged 1 commit into from
May 14, 2022

Conversation

fletcherist
Copy link
Contributor

Fixed memory leak described in #2167

I have:

  • Added tests covering the bug / feature (see testing)
  • Updated any relevant documentation (see docs)

@coveralls
Copy link

Coverage Status

Coverage increased (+0.07%) to 74.941% when pulling 3f7bf38 on fletcherist:master into b8ec51d on 99designs:master.

@StevenACoffman StevenACoffman merged commit eef7bfa into 99designs:master May 14, 2022
@StevenACoffman
Copy link
Collaborator

Thanks for hunting this down!

@frederikhors
Copy link
Collaborator

@StevenACoffman I think we need to release a PATCH ASAP for this.

@StevenACoffman
Copy link
Collaborator

@frederikhors In the issue, @fletcherist mentions there is another leak that he is working on identifying and fixing, so I would prefer to wait and give him time to do so and then include both in a new point release.

@frederikhors
Copy link
Collaborator

Ok, but I think this is already an important PATCH to release because we don't know how much time he needs.

StevenACoffman added a commit that referenced this pull request May 26, 2022
…2209)

* Added goroutine leak test for chat example

* Improved chat example with proper concurrency

* Revert "fix: prevents goroutine leak at websocket transport (#2168)"

This reverts commit eef7bfa.

* Improved subscription channel usage

* Regenerated examples and codegen

* Add support for subscription keepalives in websocket client

* Update chat example test

* if else chain to switch

Signed-off-by: Steve Coffman <steve@khanacademy.org>

* Revert "Add support for subscription keepalives in websocket client"

This reverts commits 64b882c and 670cf22.

* Fixed chat example race condition

* Fixed chatroom#Messages type

Co-authored-by: Steve Coffman <steve@khanacademy.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants